$borderStyle: #195389 solid 3px;
$bg-box: rgba(8, 39, 71, .7);
$isFullScreen_transition: transform .5s;

.demo-01 {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;

    &-map {
        width: 100%;
        height: 100%;
        background: linear-gradient(to right top, #0c213c, #2872be);
    }

    .demo-01-box {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 10px;
        box-sizing: border-box;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        pointer-events: none;

        &-header {
            width: 100%;
            height: 100px;
            pointer-events: all;
            display: flex;
            transition: $isFullScreen_transition;
            flex-shrink: 0;

            &.isFullScreen {
                transform: translateY(calc(-100% - 20px));
            }

            &-box {
                width: calc(100% / 8);
                height: 100%;
                border: $borderStyle;
                background: $bg-box;
                margin-left: 10px;
                border-radius: 10px;
                color: #fff;
                display: flex;
                justify-content: space-around;
                align-items: center;
                font-size: 32px;
                font-weight: bold;
                padding: 20px;
                position: relative;
                cursor: pointer;

                transition: all .3s;

                // &.active {
                //     background: linear-gradient(315deg, transparent 22px, $bg-box 0);
                // }
                &:hover {
                    background: rgba($color: #2872be, $alpha: .7);

                    &>p {
                        transition: all .3s;

                        &:not(.no-style):first-child {
                            font-size: 46px;

                        }

                    }
                }

                // &.active:after {
                //     content: "";
                //     position: absolute;
                //     right: 0px;
                //     bottom: 0px;
                //     background: linear-gradient(315deg, transparent 50%, $bg-box 0);
                //     width: 30px;
                //     height: 30px;
                //     border-top-left-radius: 6px;
                //     box-shadow: -2px -2px 1px #2872be;
                // }

                &>p {
                    transition: all .3s;

                    &:not(.no-style):first-child {
                        width: 70px;
                        height: 70px;
                        font-size: 36px;
                        border-radius: 50%;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                    }
                }

                &:first-child {
                    cursor: default;
                    width: calc(100% / 8 * 2);
                    margin: 0;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: center;

                    &>p {
                        &:last-child {
                            font-size: 12px;
                            color: #027fcc;
                        }
                    }


                }

                &-value {
                    display: flex;
                    align-items: center;
                }
            }
        }

        &-body {
            width: 100%;
            height: 100%;
            padding-top: 10px;
            display: flex;
            overflow: hidden;

            &-left {
                width: 25%;
                height: 100%;
                display: flex;
                flex-direction: column;
                pointer-events: all;
                transition: $isFullScreen_transition;

                &.isFullScreen {
                    transform: translateX(calc(-100%));
                }

                &-box-01 {
                    width: 100%;
                    height: 40%;
                    margin-bottom: 10px;
                    border: $borderStyle;
                    background: $bg-box;
                    border-radius: 10px;
                    display: flex;
                    flex-direction: column;

                    &-chart {
                        height: calc(100% - 60px);
                    }

                    &>div:last-child {
                        color: #195389;
                        height: 60px;
                        padding: 0 10PX;
                        display: flex;

                        &>p {
                            margin-left: 10%;
                            flex: 1;
                        }
                    }
                }

                &-box-02 {
                    width: 100%;
                    height: 60%;
                    border: $borderStyle;
                    background: $bg-box;
                    border-radius: 10px;
                }
            }

            &-center {
                width: 50%;
                height: 100%;
                margin: 0 10px;
                display: flex;
                flex-direction: column-reverse;
                position: relative;


                &-box-02 {
                    width: 100%;
                    height: 50%;
                    pointer-events: all;
                    display: flex;
                    flex-direction: column;
                    transition: $isFullScreen_transition;

                    &.isFullScreen {
                        transform: translateY(calc(100%));
                    }


                    &-box {
                        width: 100%;
                        height: calc(50% - 5px);
                        border: $borderStyle;
                        background: $bg-box;
                        border-radius: 10px;
                        flex-shrink: 0;

                        &:last-child {
                            margin-top: 10px;
                        }
                    }
                }
            }

            &-right {
                width: 25%;
                height: 100%;
                display: flex;
                flex-direction: column;
                pointer-events: all;
                transition: $isFullScreen_transition;

                &.isFullScreen {
                    transform: translateX(calc(100%));
                }

                &-box-01 {
                    width: 100%;
                    height: calc(100% / 3);
                    border: $borderStyle;
                    background: $bg-box;
                    border-radius: 10px;
                }

                &-box-02 {
                    width: 100%;
                    height: calc(100% / 3);
                    margin: 10px 0;
                    border: $borderStyle;
                    background: $bg-box;
                    border-radius: 10px;
                }

                &-box-03 {
                    width: 100%;
                    height: calc(100% / 3);
                    border: $borderStyle;
                    background: $bg-box;
                    border-radius: 10px;
                }
            }
        }
    }
}